#!/usr/bin/env python
# -*- coding: utf-8 -*-

# This dict should have app names as keys and arguments to
# loader.Loader.config_app() as values.
apps_args = dict(
    example_app = dict(app_module="example_app", mountpoint="/",
                         use_routes=True),
)

# Commands you want to be carried out when an interactive interpreter starts
interpreter_imports = '''
import cherrypy
from cherrypy import request
from webpyte.packages.content.model import *
'''

from webpyte.loader import Launcher
# The first argument lets the Launcher know whether this script is being
# executed or imported. If it is being imported, it assumes you must be in
# an interactive interpreter and the webserver is not started.
# Anyhow, the best way to get an ipython for working with your models is to:
# ./run_webpyte.py i
# (in other words, execute this script with an "i" argument.)
l = Launcher(__name__ == "__main__", apps_args, interpreter_imports)
